import type { IUserInfo, UpdateIUserInfo } from "@/types/profile"
import { http } from "@/utils/request"

export const getMemberProfileAPI = () => {
  return http<IUserInfo>({
    url: '/member/profile',
    method: 'GET'
  })
}
export const updateMemberProfileAPI = (data: UpdateIUserInfo) => {
  return http<IUserInfo>({
    url: '/member/profile',
    method: 'PUT',
    data
  })
}